<!DOCTYPE html>
<html lang="zh-cn">
<head>

<include file="share:meta"/>
<style type="text/css">
.xuanfu .orderlist{
    width: 100%;
    height: 46px;
    line-height: 46px;
    font-size: 18px;
    border: 0;
    border-radius: 5px;
    background: #dedede;
    color: #000;
}
</style>

<script>
$(function(){
	$("i.checkbox").click(function(){
		if($(this).hasClass("select")) {
			$(this).removeClass("select");
			$(this).parent().children("input").prop("checked",false);
		}else{
			//取消所有选择
			$(".check").each(function(){
				$(this).children("i.checkbox").removeClass("select");
				$(this).children("input").prop("checked",false);
			});
			
			$(this).addClass("select");
			$(this).parent().children("input").prop("checked",true);
		}
	});
})
function checkform() {
	var chk_value =[]; 
	$('input[name="pid[]"]:checked').each(function(){ 
		chk_value.push($(this).val()); 
	});
	if(chk_value!='') {
		return true;
	}else{
		return false;
	}
}
</script>

</head>
<body class="plist">

<div id="plist" class="container-fluid" style="padding-bottom:60px;">
	
    <form action="" method="post" onSubmit="return checkform();">
    
	<div class="row detail">
    	
        <volist name="project" id="vo">
        
        <div class="hang perone">
            <div class="col-xs-1 textcenter nopaddinglr">
                <div class="check">
                	<eq name="vo.buy" value="1">
                    <i class="checkbox"></i>
                    <input type="checkbox" name="pid[]" value="{$vo.id}" class="yinchang"/>
                    </eq>
                </div>
            </div>
            <div class="col-xs-3 nopaddinglr">
                <div class="photo">
                    <a href="__APP__/account/project/pid/{$vo.id}/fromOpenID/{$openID}"><img src="{$vo.new_cover}" class="img-responsive"/></a>
                </div>
            </div>
            <div class="col-xs-8">
            	<a href="__APP__/account/project/pid/{$vo.id}/fromOpenID/{$openID}">
                <div class="name">项目：{$vo.name}</div>
                <div class="jiage">价格：<span class="orange">{$vo.price}元</span></div>
                <div class="xingji">
                	星级：
                    <span class="orange">
                    	<for start="0" end="$vo.star">
                    	<i class="fa fa-star"></i>
                        </for>
					</span>
				</div>
                <div class="miaoshu">描述：{$vo.dep}</div>
                </a>
            </div>
        </div>
        
        </volist>
        
        <div class="navbar-fixed-bottom xuanfu">
            <div class="op">
                <div class="col-xs-6"><input type="button" onclick="javascript:window.location.href='/club/account/reservation'" class="orderlist" value="查看订单"/></div>
                <div class="col-xs-6">
                    <input type="submit" value="购买"/>
                </div>
            </div>
        </div>
	</div>
    
    </form>
</div>

<include file="share:menu"/>

</body>
</html>
